class Solution(object):
    def selfDividingNumbers(self, left, right):
        """
        :type left: int
        :type right: int
        :rtype: List[int]
        """
        out = []
        for num in range(left, right + 1):
            s = str(num)
            flag = True
            for c in s:
                if int(c) != 0 and num % int(c) == 0:
                    continue
                else:
                    flag = False
                    break
            if flag:
                out.append(num)
        return out
